﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;

namespace C7
{
	/// <summary>
	/// Interaction logic for InternetModule.xaml
	/// </summary>
    public partial class GamesModule : UserControl
    {
        private WindowOperations WindowOPs = new WindowOperations();
        public GamesModule()
        {
            this.InitializeComponent();
            WindowOPs.WindowToAnimationHandlers(LayoutRoot, true);
        }
        Process game = new Process();
        private void imgFreeCell_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\FreeCell\FreeCell.exe";
            game.Start();
        }

        private void imgHearts_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\Hearts\Hearts.exe";
            game.Start();
        }

        private void imgMahjong_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\Mahjong\Mahjong.exe";
            game.Start();
        }

        private void imgMineSweepers_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\Minesweeper\MineSweeper.exe";
            game.Start();
        }

        private void imgSolitare_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\Solitaire\Solitaire.exe";
            game.Start();
        }

        private void imgSpiderSoliate_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            game.StartInfo.FileName = @"C:\Program Files\Microsoft Games\SpiderSolitaire\SpiderSolitaire.exe";
            game.Start();
        }
    }
}